








//
//  HPAddSomeCell.m
//  CXJZHP
//
//  Created by Mr.hu on 2017/7/30.
//  Copyright © 2017年 Mr.hu. All rights reserved.
//

#import "HPAddSomeCell.h"

@implementation HPAddSomeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        UIButton * leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        leftBtn.userInteractionEnabled = NO;
        leftBtn.frame = CGRectMake(ScreenWidth-40, 20, 20, 20);
        [leftBtn setImage:[UIImage imageNamed:@"icon_tjtxr_xuanze"] forState:UIControlStateNormal];
        [leftBtn setImage:[UIImage imageNamed:@"xuanzhong"] forState:UIControlStateSelected];
        
        [self.contentView addSubview:leftBtn];
        
        _leftbtn = leftBtn;
        
        
        UILabel * namelab = [[UILabel alloc]initWithFrame:CGRectMake(20, 20, 200, 20)];
    
        namelab.font = [UIFont systemFontOfSize:16];
        namelab.textColor = [UIColor blackColor];
        [self.contentView addSubview:namelab];
        self.namelab = namelab;
        
        UILabel * numberlab = [[UILabel alloc]initWithFrame:CGRectMake(0, 59.5, ScreenWidth, 0.5)];
        numberlab.font = [UIFont systemFontOfSize:12];
        numberlab.backgroundColor = RGBA(230, 230, 230, 1);
        [self.contentView addSubview:numberlab];
        self.numberlab = numberlab;
        
    }
    return self;
}


- (void)updateCellWithState:(BOOL)select{
    
    self.leftbtn.selected = select;
    _isSelect = select;
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated{
    [super setSelected:selected animated:animated];
}

@end
